// import { findAllStop } from "@/api/shop";
const state = {
  shopList: [],
}

const mutations = {
  SET_STOPLIST: (state, shopList) => {
    state.shopList = shopList
    console.log(state.shopList)
  },
}
const actions = {
  getShopList({ commit }) {
    // findAllStop().then(res => {
    //     console.log(res);
    //     commit('SET_STOPLIST', res.data);
    // }).catch(err => {
    //     console.log(err)
    // })
    commit('SET_STOPLIST', [])
  },
}

export default {
  namespaced: true,
  state,
  mutations,
  actions,
}
